package com.example.questionnaire.pojo.DO;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("问卷次数限制类")
public class QuestionnaireView {

    @TableId(type = IdType.UUID)
    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("问卷id")
    private String formid;

    @ApiModelProperty("是否开启封面")
    private int toEnableTheCover;

    @ApiModelProperty("封面图片")
    private String img;

    @ApiModelProperty("答题按钮文案")
    private String btnText;

    @ApiModelProperty("答题按钮背景色")
    private String backgroundColor;

    @ApiModelProperty("是否开启活动说明按钮")
    private int isActivitiesThat;

    @ApiModelProperty("活动说明按钮背景色")
    private String activitiesBtnBgColor;

    @ApiModelProperty("活动按钮跳转的图文页链接")
    private String graphicPageLinks;

    @ApiModelProperty("是否开启自定义按钮")
    private int customButton;

    @ApiModelProperty("自定义按钮颜色")
    private String customButtonColor;

    @ApiModelProperty("自定义按钮链接")
    private String customButtonUrl;

    @ApiModelProperty("答题背景图")
    private String bgImg;

    @ApiModelProperty("提交按钮颜色")
    private String submitBtnColor;

    @ApiModelProperty("标题颜色")
    private String titleColor;

    @ApiModelProperty("题干颜色")
    private String topicDryColor;

    @ApiModelProperty("选项文字大小")
    private String textSize;

    @ApiModelProperty("题干文字大小")
    private String titleSize;


    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)//在插入的时候自动填充
    private Date createTime;
    @ApiModelProperty("最后更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)////在插入和更新的时候自动填充
    private Date modifiedTime;
    @ApiModelProperty("逻辑删除")
    @TableLogic
    private Integer deleted;


    public QuestionnaireView(String formid) {
        this.formid = formid;
    }
}
